package com.cs.study.homework._0207;

public class Demo {
    public static void main(String[] args) {
        Student s = new Student();

        s.name = "张三";
        s.age = 15;
        s.id = 123;

        System.out.println(s);
        System.out.println(s.name);
        System.out.println(s.age);
        System.out.println(s.id);
        s.study();
    }
}

class Student {
    String name;
    int age;
    int id;
    boolean gender;

    public void study() {
        System.out.println(name + "正在学习" );
    }
}
